package com.ruoyi.user.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.base.BaseEntity;

/**
 * 用户设备绑定表 hl_user_machine
 * 
 * @author ruoyi
 * @date 2019-01-02
 */
public class UserMachine extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private Integer id;
	/** 设备主键 */
	private Integer mMachine;
	/** 用户主键 */
	private Integer uId;
	/** 设备编号 */
	private String mCode;
	/** 绑定状态(1-绑定，0-未绑定) */
	private Integer status;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新人 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;
	/** 假删除（0-正常，1-删除） */
	private Integer enabled;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setMMachine(Integer mMachine) 
	{
		this.mMachine = mMachine;
	}

	public Integer getMMachine() 
	{
		return mMachine;
	}
	public void setUId(Integer uId) 
	{
		this.uId = uId;
	}

	public Integer getUId() 
	{
		return uId;
	}
	public void setMCode(String mCode) 
	{
		this.mCode = mCode;
	}

	public String getMCode() 
	{
		return mCode;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setEnabled(Integer enabled) 
	{
		this.enabled = enabled;
	}

	public Integer getEnabled() 
	{
		return enabled;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mMachine", getMMachine())
            .append("uId", getUId())
            .append("mCode", getMCode())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("enabled", getEnabled())
            .toString();
    }
}
